package com.myslef.teaching_platfrom.domain.task;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.sql.Timestamp;

@Data
public class Task {
    private Integer id;

    private String taskName;

    private Integer courseId;

    private Integer teacherId;

    private String taskUrlList;

    private String content;

    private Integer submittedCount;

    private Integer noCount;

    @TableField(value = "deadline")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp deadline;

    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createTime;
}
